package top.xxyu.context;

import org.apache.shiro.SecurityUtils;

import top.xxyu.app.pojo.CurrentUser;
import top.xxyu.shiro.ShiroUtil;
/**
 * 
 * @author xx
 *
 */
public class LocalContext {

	
	public static CurrentUser getCurrentUser(){
		return  (CurrentUser) SecurityUtils.getSubject().getSession().getAttribute(ShiroUtil.SESSION_CURRENT_USER);
	}
}
